/* 表格带边框样式 */
.ant-table-small {
    border: 1px solid #e8e8e8;

    >.ant-table-content> {
        .ant-table-scroll {
            >.ant-table-header {
                table {
                    >.ant-table-thead {
                        >tr {
                            >th {
                                padding: 5px 8px;
                            }
                        }
                    }
                }
            }

            .ant-table-body {
                >table {
                    >.ant-table-tbody {
                        >tr {
                            >td {
                                padding: 3px 8px;
                            }
                        }
                    }

                    >.ant-table-thead {
                        >tr {
                            >th {
                                background: #60b3ff;
                            }
                        }
                    }
                }
            }
        }

        .ant-table-body {
            margin: 0;

            >table> {
                .ant-table-thead {
                    >tr {
                        >th {
                            white-space  : nowrap;
                            background   : #60b3ff;
                            color        : #fff;
                            border-bottom: 1px solid #e8e8e8;
                            font-size    : 14px;
                            padding      : 5px 8px;

                            .unit {
                                color    : #a6a6a6;
                                font-size: 12px;
                            }
                        }

                        >td {
                            padding: 3px 8px;
                        }
                    }
                }

                .ant-table-tbody {
                    >tr {
                        >td {
                            padding: 3px 8px;
                        }
                    }
                }
            }
        }

        .ant-table-scroll> {
            .ant-table-header>table>.ant-table-thead>tr>th {
                white-space: nowrap;
                background : #60b3ff;
                color      : #fff;
                font-size  : 14px;

                &.yellow {
                    background: #fffb96;
                    color     : #333;
                }

                &.green {
                    background: #9bff96;
                    color     : #333;
                }

                &.blue {
                    background: #96d6ff;
                    color     : #333;
                }
            }

            .ant-table-body>table>.ant-table-tbody>tr>td {
                background: #f5fafd;
                color     : #333;
            }
        }
    }
}

/* 旧版表格样式 */

.ant-table-tbody>tr>td {
    border-right: 1px solid #e8e8e8;
    background  : #f5fafd;
    color       : #333;
}

.ant-table-thead>tr>th {
    border-right : 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    font-size    : 14px;
}

.ant-btn-sm {
    font-size: 12px;
}

.ant-tabs-nav {
    .ant-tabs-tab-active {
        font-size  : 14px;
        font-weight: bold;
    }
}

.ant-tabs-nav-container {
    font-size    : 14px;
    margin-bottom: -2px;
}

.ant-table-thead>tr:first-child>th {
    &:first-child {
        border-top-left-radius: 0;
    }

    &:last-child {
        border-top-right-radius: 0;
    }
}

/* 新规范表格 */
.table-nzbordered {
    .ant-table-thead {
        >tr {
            >th {
                padding      : 5px 10px;
                line-height  : 20px;
                font-size    : 14px;
                background   : #60b3fe;
                color        : #fff;
                text-align   : center;
                border-right : 1px solid #e8e8e8;
                border-bottom: 1px solid #e8e8e8;
            }
        }
    }

    .ant-table-tbody {
        >tr {
            >td {
                padding         : 5px 10px;
                line-height     : 20px;
                font-size       : 14px;
                text-align      : left;
                border-right    : 1px solid #d4d4d4;
                border-bottom   : 1px solid #696868;
                // border-left  : 1px solid #696868;

                &.tight {
                    padding: 2px;
                }

                &:last-child {
                    border-right: 1px solid #d4d4d4;
                }
            }

            textarea {
                &::-webkit-scrollbar {
                    display: none;
                }
            }

            &:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) {
                >td {
                    background: #e8e8e8;
                }
            }

            &:focus {
                outline: none;

                >td {
                    background-color: #d3e6ff;
                }
            }
        }
    }
}